﻿using DomainModel;
using FluentNHibernate.Mapping;

namespace Repository.NHibernate.Mapping
{
    public class TimetableUnitMap : ClassMap<TimetableUnit>
    {
        public TimetableUnitMap()
        {
            Id(x => x.Id).GeneratedBy.Native();

            Map(x => x.Week);
            Map(x => x.Day);
            Map(x => x.PairNo);
            Map(x => x.WorkType);
            Map(x => x.Room);

            References(x => x.StudySemester);
            References(x => x.Group);
            References(x => x.Subject);
            References(x => x.Teacher);
        }
    }
}